package com.atcc.demo.domain;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.servlet.HandlerInterceptor;

import com.atcc.demo.util.RedisUtil;

public class TestInterceptor implements HandlerInterceptor{
	
	@Autowired
	private RedisUtil redisUtil;

	@Override
	public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
			throws Exception {
//		String token = (String) redisUtil.get("tokenExercise");
//		if (token==null) return false;
//		else return true;
		return true;
	}
}
